package com.orientation.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 报到
 * </p>
 *
 * @author xuandian
 * @since 2022-3-9
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_reserve")
@ApiModel(value="Reserve对象", description="报到预约")
public class Reserve implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "预约主键")
    @TableId(value = "SID", type = IdType.ASSIGN_UUID)
    private String sid;

    @ApiModelProperty(value = "预约报到时间")
    @TableField("RESERVE_TIME")
    private LocalDateTime reserveTime;

    @ApiModelProperty(value = "报到地点")
    @TableField("ADDRESS")
    private String address;
    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_USER",fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "UPDATE_USER",fill =FieldFill.UPDATE )
    private String updateUser;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "UPDATE_TIME",fill =FieldFill.UPDATE )
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "逻辑删除")
    @TableField("DELETED")
    private Integer deleted;

    @ApiModelProperty(value = "学生ID")
    @TableField("STUDENT_ID")
    private String studentId;

    @ApiModelProperty(value = "乘车方式")
    @TableField("TRAFFIC")
    private String traffic;

    @ApiModelProperty(value = "实际报道时间")
    @TableField(value = "REAL_TIME",fill =FieldFill.UPDATE )
    private LocalDateTime realTime;

    @ApiModelProperty(value = "0驳回 1未/待审核 2已审核 3已报道")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "乐观锁注解字段")
    @TableField(value = "VERSION")
    @Version
    private Integer version;

    @ApiModelProperty(value = "车次")
    @TableField(value = "TRAIN_NUMBER")
    private String trainNumber;

    @ApiModelProperty(value = "联系电话手机号")
    @TableField("MOBILE_PHONE")
    private String mobilePhone;
}
